.header {
	backface-visibility: hidden;
	background-color: $brand-color;
	color: $white;
	min-height: $header-height;
	padding-top: (($header-height - $nav-height) / 2);
	padding-bottom: (($header-height - $nav-height) / 2);
	position: fixed;
		top: 0;
		right: 0;
		left: 0;
	transition: background-color 0.3s $timing, box-shadow 0.15s linear;
	z-index: $header-base;
	@include clearfix();
	&.fixed,
	&.open {
		background-color: $brand-color-dark-m;
		box-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
	}
	a {
		color: $white;
	}
	.dropdown-menu {
		border-radius: 2px;
		a {
			color: $black-text;
		}
	}
	.dropdown-toggle {
		z-index: 1;
		&:after {
			background-color: rgba(0, 0, 0, 0.3);
			border-radius: 50%;
			content: "";
			display: block;
			height: ($nav-height - $base);
			margin-left: (($nav-height - $base) / -2);
			position: absolute;
				top: ($base / 2);
				left: 50%;
			transform: scale(0, 0);
			transition: all 0.3s $timing;
			transition-property: background-color, transform;
			width: ($nav-height - $base);
			z-index: -1;
			// no csstransforms
				.no-csstransforms & {
					display: none;
				}
		}
	}
	.dropdown.open .dropdown-toggle {
		background-color: transparent;
		&:after {
			transform: scale(1, 1);
			// no csstransforms
				.no-csstransforms & {
					display: block;
				}
		}
	}
	.nav {
		margin: 0;
	}
	.tab-nav {
		box-shadow: none;
		margin: 0;
	}
}

// colour
	@each $color in $palette-list {
		$i: index($palette-list, $color);

		.page-#{$color} .header {
			background-color: nth($palette-color, $i);
			&.fixed,
			&.open {
				background-color: nth($palette-color-dark-m, $i);
			}
		}
	}

.header-fix-hide {
	.header.fixed & {
		display: none !important;
	}
}

.header-fix-show-block {
	display: none !important;
	.header.fixed & {
		display: block !important;
	}
}

.header-fix-show-inline {
	display: none !important;
	.header.fixed & {
		display: inline !important;
	}
}

.header-fix-show-inline-block {
	display: none !important;
	.header.fixed & {
		display: inline-block !important;
	}
}

.header-logo,
.header-text {
	display: block;
	float: left;
	font-weight: $font-weight-light;
	height: $nav-height;
	line-height: $line-height-h4;
	margin: 0;
	padding: (($nav-height - $line-height-h4) / 2) $grid-gutter;
	&:focus,
	&:hover {
		text-decoration: none;
	}
}

.header-logo {
	font-size: $font-size-h4;
	img {
		display: block;
		max-height: $line-height-h4;
		width: auto;
	}
}
